//
//  UIView+Support.h
//  AMS
//
//  Created by l.t.zero on 2020/6/5.
//  Copyright © 2020 l.t.zero. All rights reserved.
//

#import <Foundation/Foundation.h>
@import UIKit;

@interface UINavigationBar(line)

- (void)hideline;

@end

@interface UIView(SupportEx)

+ (instancetype)viewFromXib;

- (UINavigationController *)navigationController;
- (UIViewController *)viewController;

- (UIImage *)renderImage;
- (UIImage *)renderImageWithSize:(CGSize)size;

- (BOOL)findSubViewByCompare:(BOOL (^)(UIView *obj))comparision allSameType:(BOOL)same container:(NSArray * __autoreleasing *)container;
+ (BOOL)findSubViewInView:(UIView*)v compare:(BOOL (^)(UIView *obj))comparision allSameType:(BOOL)same container:(NSArray * __autoreleasing *)container;

@end
